package com.ww.testclient.order.feignApi;


import com.ww.testserver.order.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author iiwan
 */
@FeignClient(url = "http://192.168.1.9:8777", name = "test-service")
public interface
OrderServiceFeignApi {

    @PostMapping("/order/submit")
    OrderEntity submitOrder(@RequestBody OrderEntity order);
}
